#pragma once
#include "Global.h"

namespace CONVERT
{
	IplImage* toYPlane (IplImage* pOrigin, BOOL isDelete = FALSE);
	IplImage* toStretch(IplImage* pOrigin, BOOL isDelete = FALSE);
	IplImage* toCanny  (IplImage* pOrigin, int minT, int maxT, BOOL isDelete = FALSE);
	IplImage* toSobel  (IplImage* pOrigin, BOOL isDelete = FALSE);
	IplImage* toThining(IplImage* pOrigin, BOOL isDelete = FALSE);
	IplImage* toBinary (IplImage* pOrigin, int minT = 0, int maxT = 128, BOOL isDelete = FALSE);
	IplImage* toZoomOut(IplImage* pOrigin, int newWidth, BOOL isDelete = FALSE);

	IplImage* findFace(IplImage* pOrigin, BOOL isDelete = FALSE);
	BOOL      findEyes(IplImage* pOrigin);
	BOOL      noFindEyes();
};
